package com.huiyeji.dynamic.core.builder;

import com.huiyeji.dynamic.core.DynamicRegex;
import com.huiyeji.dynamic.core.RegexContainer;
import com.huiyeji.dynamic.core.provider.NullParamProvider;
import com.huiyeji.dynamic.core.provider.ParamProvider;

import java.util.Collections;

public class NullParamProviderBuilder implements ParamProviderBuilder {
    @Override
    public ParamProvider build(String paramStr) {
        return new NullParamProvider();
    }

    @Override
    public RegexContainer ruleInitialize() {
        return new RegexContainer(Collections.singletonList(
                DynamicRegex.PARAM_NULL.complete()
        ));
    }

    @Override
    public int getOrder() {
        return 1000;
    }
}
